package top.codedance.iotp.common.util;

//import org.apache.commons.codec.binary.Base64;

public class Base64or32Tool {
    //解码
    public static byte[] decode(byte[] bytes) {
//        return Base64.decodeBase64(bytes);
        return Base32.decode(bytes);
    }

    //编码
    public static byte[] encode(byte[] bytes) {
//        return Base64.encodeBase64(bytes);
        return Base32.encode(bytes);
    }
}
